package com.fz.mapper.project;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.system.DictionaryValue;
import com.fz.entity.project.ProjectPart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fz.vo.project.projectPart.ProjectPartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目标段信息 Mapper 接口
 * </p>
 *
 * @author xmj
 * @since 2021-03-25
 */
@Mapper
public interface ProjectPartMapper extends BaseMapper<ProjectPart> {
    /**
     * 项目标段信息 -- 分页
     *
     * @param page               分页
     * @param lambdaQueryWrapper 查询条件
     * @return
     */
    IPage<ProjectPartVo> findProjectPartList(Page<ProjectPart> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<ProjectPart> lambdaQueryWrapper);

    /**
     * 项目标段信息 -- 不分页
     *
     * @param queryWrapper 查询条件
     * @return
     */
    List<ProjectPartVo> selectProjectPartList(@Param(Constants.WRAPPER) LambdaQueryWrapper<DictionaryValue> queryWrapper);
}
